package main

import (
	"log"
	"time"
)

func main() {
	log.Println("start execute main ......")
	go goroutine01()
	go goroutine02()
	time.Sleep(10 * time.Second)
	log.Println("end execute main ......")
}

func goroutine01() {
	log.Println("start execute goroutine01 ......")
	time.Sleep(3 * time.Second)	//休眠3s
	log.Println("end execute goroutine01 ......")
}
func goroutine02() {
	log.Println("start execute goroutine02 ......")
	time.Sleep(2 * time.Second)	//休眠3s
	log.Println("end execute goroutine02 ......")
}
